package chp02.homework;

public class Home2 {

    public static void main(String[] args) {
        int left = 10;
        int right = 8;
        System.out.println("交换手牌前");
        System.out.println("左手:" + left);
        System.out.println("右手:" + right);

        //使用第三变量进行存储
        int temp = left;
        left = right;
        right = temp;
        System.out.println("交换手牌后");
        System.out.println("左手:" + left);
        System.out.println("右手:" + right);
    }
}
